Skip to content

ci: decide publish from git (HEAD^), not an npm lookup the repo can't authenticate - #21

Merged
robgilbreath merged 1 commit into
masterfrom
ci/publish-skip-unbumped-git
Sep 3, 2026
Merged

robgilbreath merged 1 commit into
masterfrom
ci/publish-skip-unbumped-git

Conversation

@robgilbreath

Copy link
Copy Markdown

Follow-up to #20, which didn't work: @pncit/node-quickbooks is access: restricted and this repo has no NPM_TOKEN secret, so the unauthenticated npm view saw 404, reported the version unpublished, and npm publish hit the same E403 (run 33715159834).

Replaces the lookup with the rule the private libraries use on the publish side: compare package.json to HEAD^ (the checkout is already fetch-depth: 2), skip when unchanged. A workflow_dispatch always attempts the publish. No secret needed.

Workflow-only; no version bump. Part of pncit/.github#26.

… authenticate

@pncit/node-quickbooks is access: restricted and the repo has no
NPM_TOKEN, so the #20 guard's unauthenticated npm view saw 404 for the
current version, reported it unpublished, and the publish step hit the
same E403 (run 33715159834). Compare package.json to HEAD^ instead —
the rule the private libraries already use — and always attempt on a
manual dispatch.
@robgilbreath
robgilbreath merged commit 91c373e into master Sep 3, 2026
1 check passed
@robgilbreath
robgilbreath deleted the ci/publish-skip-unbumped-git branch September 3, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant